class NodeEntry (nodeId : String, address : String){  
  def this() = this("", "")
  
  def getNodeId() : String = {
    nodeId
  }
  
  def getAddress() : String = {
    address
  }
  
  def isEmpty() : Boolean = {
    nodeId == ""
  }
  
  def toJson = "{ \"nodeId\": \"" + nodeId +  "\", \"address\": \"" + address + "\" }"
  
  override def toString = nodeId +","+ address
}